package com.molyfun.parents.rest.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.molyfun.parents.rest.BaseResponse;

import java.util.List;

/**
 * Created by william(liuchao.hit@gmail.com).
 * Date:10/24/16.
 */
public class TeacherDetailResponse extends BaseResponse{

    private TeacherDetailBean data;

    public TeacherDetailBean getData() {
        return data;
    }

    public void setData(TeacherDetailBean data) {
        this.data = data;
    }

    public static class TeacherDetailBean implements Parcelable {


        /**
         * id : 8a2d9263596ccd39015986e808f23874
         * username : 沈老师
         * password : f3b64d5929f8f2d2
         * oldpassword : null
         * headimgurl : http://oa91iwip0.bkt.clouddn.com/helloimg/user/20170122/20170122132807HZMfI81a.jpg?imageMogr2/thumbnail/300x300
         * token : null
         * resume :
         * post : 职称职称
         * skills : null
         * experience : null
         * training :
         * sample : null
         * certList : []
         * rolename : 康复老师(测试机构)
         */

        private String id;
        private String username;
        private String headimgurl;
        private String resume;
        private String skills;
        private String post;
        private String experience;
        private String training;
        private String sample;
        private String rolename;
        private List<MediaobjectlistBean> certlist;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public String getHeadimgurl() {
            return headimgurl;
        }

        public void setHeadimgurl(String headimgurl) {
            this.headimgurl = headimgurl;
        }

        public String getResume() {
            return resume;
        }

        public void setResume(String resume) {
            this.resume = resume;
        }

        public String getSkills() {
            return skills;
        }

        public void setSkills(String skills) {
            this.skills = skills;
        }

        public String getExperience() {
            return experience;
        }

        public void setExperience(String experience) {
            this.experience = experience;
        }

        public String getTraining() {
            return training;
        }

        public void setTraining(String training) {
            this.training = training;
        }

        public String getSample() {
            return sample;
        }

        public void setSample(String sample) {
            this.sample = sample;
        }

        public String getRolename() {
            return rolename;
        }

        public void setRolename(String rolename) {
            this.rolename = rolename;
        }

        public List<MediaobjectlistBean> getCertList() {
            return certlist;
        }

        public void setCertList(List<MediaobjectlistBean> certList) {
            this.certlist = certList;
        }

        public String getPost() {
            return post;
        }

        public void setPost(String post) {
            this.post = post;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.id);
            dest.writeString(this.username);
            dest.writeString(this.headimgurl);
            dest.writeString(this.resume);
            dest.writeString(this.skills);
            dest.writeString(this.post);
            dest.writeString(this.experience);
            dest.writeString(this.training);
            dest.writeString(this.sample);
            dest.writeString(this.rolename);
            dest.writeTypedList(this.certlist);
        }

        public TeacherDetailBean() {
        }

        protected TeacherDetailBean(Parcel in) {
            this.id = in.readString();
            this.username = in.readString();
            this.headimgurl = in.readString();
            this.resume = in.readString();
            this.skills = in.readString();
            this.post = in.readString();
            this.experience = in.readString();
            this.training = in.readString();
            this.sample = in.readString();
            this.rolename = in.readString();
            this.certlist = in.createTypedArrayList(MediaobjectlistBean.CREATOR);
        }

        public static final Parcelable.Creator<TeacherDetailBean> CREATOR = new Parcelable.Creator<TeacherDetailBean>() {
            @Override
            public TeacherDetailBean createFromParcel(Parcel source) {
                return new TeacherDetailBean(source);
            }

            @Override
            public TeacherDetailBean[] newArray(int size) {
                return new TeacherDetailBean[size];
            }
        };
    }

}
